package com.example.andoidtest;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.TextView;

public class SecondActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_second);

		Intent intent = this.getIntent();
		String results = intent.getStringExtra(MainActivity.RESULT_FILE_LIST);
		int workingTime = (int)intent.getLongExtra(MainActivity.SEARCH_WORKING_TIME, 1);
		
		EditText txtConsole = (EditText) this.findViewById(R.id.txtConsole);
		TextView lblWorkingTime = (TextView) this.findViewById(R.id.lblWorkingTime);
		txtConsole.setText(results);
		lblWorkingTime.setText("" + workingTime);
	}
}